/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.person;

import enteties.person.TelecomtypeFacadeLocal;
import java.util.Collection;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import util.person.TelecomtypeDetails;

/**
 *
 * @author Gebruiker
 */
@Stateless
public class TelecomtypeBean implements TelecomtypeBeanRemote {
    @EJB
    private TelecomtypeFacadeLocal telecomtypeFacade;

    @Override
    public Integer creatTelecomType(String name){
        return telecomtypeFacade.creatTelecomType(name);
    }
    
    @Override
    public void editTelecomType(Integer id, String name){
        telecomtypeFacade.editTelecomType(id, name);
    }
    
    @Override
    public void removeTelecomType(Integer id){
        telecomtypeFacade.removeTelecomType(id);
    }
    
    @Override
    public TelecomtypeDetails getTelecomtypeDetails(Integer id){
        return telecomtypeFacade.findById(id);
    }
    
    @Override
    public Collection<TelecomtypeDetails> getAllTelecomtypeDetails(){
        return telecomtypeFacade.findAllTypes();
    }

}
